/* 现代化UI样式 - 苹果设计师级别 */

/* 全局变量定义 */
:root {
  /* 主色调 */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  
  /* 阴影效果 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* 动画时长 */
  --transition-fast: 0.15s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
  
  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
}

/* 现代化卡片样式 */
.modern-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(102, 126, 234, 0.3);
}

/* 渐变按钮 */
.gradient-button {
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.gradient-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow) ease;
}

.gradient-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.gradient-button:hover::before {
  left: 100%;
}

.gradient-button:active {
  transform: translateY(0);
}

/* 现代化输入框 */
.modern-input {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  transition: all var(--transition-normal) ease;
  backdrop-filter: blur(10px);
  position: relative;
}

.modern-input:hover {
  border-color: rgba(102, 126, 234, 0.3);
  background: rgba(255, 255, 255, 0.95);
}

.modern-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), var(--shadow-md);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

/* 表单项动画 */
.modern-form-item {
  margin-bottom: var(--spacing-lg);
  animation: slideInUp var(--transition-normal) ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 选择器样式 */
.modern-select {
  border-radius: var(--radius-md) !important;
  border: 2px solid rgba(0, 0, 0, 0.1) !important;
  transition: all var(--transition-normal) ease !important;
}

.modern-select:hover {
  border-color: rgba(102, 126, 234, 0.3) !important;
}

.modern-select.ant-select-focused {
  border-color: #667eea !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* 日期选择器样式 */
.modern-date-picker {
  border-radius: var(--radius-md) !important;
  border: 2px solid rgba(0, 0, 0, 0.1) !important;
  transition: all var(--transition-normal) ease !important;
  backdrop-filter: blur(10px);
}

.modern-date-picker:hover {
  border-color: rgba(102, 126, 234, 0.3) !important;
}

.modern-date-picker.ant-picker-focused {
  border-color: #667eea !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* 加载动画 */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 脉冲动画 */
.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* 淡入动画 */
.fade-in {
  animation: fadeIn var(--transition-slow) ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 滑入动画 */
.slide-in-right {
  animation: slideInRight var(--transition-normal) ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 现代化标签 */
.modern-tag {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--radius-xl);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #667eea;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast) ease;
}

.modern-tag:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  transform: scale(1.05);
}

/* 现代化按钮样式 */
.modern-button {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.modern-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left var(--transition-normal) ease;
}

.modern-button:hover {
  background: rgba(102, 126, 234, 0.05);
  border-color: rgba(102, 126, 234, 0.3);
  color: #667eea;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.modern-button:hover::before {
  left: 100%;
}

.modern-button:active {
  transform: translateY(0);
}

/* 危险按钮样式 */
.danger-button {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.danger-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(250, 112, 154, 0.3);
}

.danger-button:active {
  transform: translateY(0);
}

/* 成功按钮样式 */
.success-button {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.success-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(79, 172, 254, 0.3);
}

.success-button:active {
  transform: translateY(0);
}

/* 加载状态按钮 */
.loading-button {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 操作确认提示动画 */
.confirm-popup {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-lg);
  animation: popIn var(--transition-normal) cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 悬停提示效果 */
.tooltip-trigger {
  position: relative;
  cursor: help;
}

.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal) ease;
  z-index: 1000;
}

.tooltip-trigger:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* 现代化模态框样式 */
.modern-modal .ant-modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalSlideIn var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-modal .ant-modal-header {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--spacing-lg);
}

.modern-modal .ant-modal-title {
  font-weight: 600;
  color: #2c3e50;
  font-size: 18px;
}

.modern-modal .ant-modal-body {
  padding: var(--spacing-xl);
}

.modern-modal .ant-modal-footer {
  background: rgba(248, 250, 252, 0.8);
  border-top: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: var(--spacing-lg) var(--spacing-xl);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 通知样式 */
.modern-notification {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: notificationSlideIn var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes notificationSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 成功通知 */
.notification-success {
  border-left: 4px solid #52c41a;
}

/* 错误通知 */
.notification-error {
  border-left: 4px solid #ff4d4f;
}

/* 警告通知 */
.notification-warning {
  border-left: 4px solid #faad14;
}

/* 信息通知 */
.notification-info {
  border-left: 4px solid #1890ff;
}

/* 加载遮罩 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn var(--transition-normal) ease;
}

.loading-overlay .loading-content {
  text-align: center;
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: pulseScale 2s ease-in-out infinite;
}

@keyframes pulseScale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* 玻璃态效果 */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 精细化字体排版 */
.typography-heading-1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #1a202c;
  margin-bottom: var(--spacing-lg);
}

.typography-heading-2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #2d3748;
  margin-bottom: var(--spacing-md);
}

.typography-heading-3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #2d3748;
  margin-bottom: var(--spacing-sm);
}

.typography-body-large {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: var(--spacing-md);
}

.typography-body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #4a5568;
  margin-bottom: var(--spacing-sm);
}

.typography-body-small {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  color: #718096;
  margin-bottom: var(--spacing-xs);
}

.typography-caption {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 数字和统计文本 */
.typography-number-large {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #2d3748;
}

.typography-number-medium {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: #2d3748;
}

.typography-number-small {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: #4a5568;
}

/* 精细化间距系统 */
.spacing-section {
  margin-bottom: calc(var(--spacing-xl) * 1.5);
}

.spacing-card-group {
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.spacing-form-group {
  margin-bottom: var(--spacing-lg);
}

.spacing-form-item {
  margin-bottom: var(--spacing-md);
}

.spacing-button-group {
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.spacing-inline-elements {
  gap: var(--spacing-xs);
}

/* 视觉层次增强 */
.visual-hierarchy-primary {
  position: relative;
  z-index: 3;
}

.visual-hierarchy-secondary {
  position: relative;
  z-index: 2;
}

.visual-hierarchy-tertiary {
  position: relative;
  z-index: 1;
}

/* 内容区域间距 */
.content-container {
  padding: var(--spacing-xl) var(--spacing-lg);
}

.content-section {
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.content-section:last-child {
  border-bottom: none;
}

/* 响应式字体大小 */
@media (max-width: 768px) {
  .typography-heading-1 {
    font-size: 2rem;
  }
  
  .typography-heading-2 {
    font-size: 1.5rem;
  }
  
  .typography-number-large {
    font-size: 1.75rem;
  }
  
  .content-container {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .typography-heading-1 {
    font-size: 1.75rem;
  }
  
  .typography-heading-2 {
    font-size: 1.25rem;
  }
  
  .content-container {
    padding: var(--spacing-md) var(--spacing-sm);
  }
}

/* 悬浮效果 */
.hover-lift {
  transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* 现代化进度条 */
.modern-progress {
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 8px;
  position: relative;
}

.modern-progress-bar {
  background: var(--primary-gradient);
  height: 100%;
  border-radius: var(--radius-xl);
  transition: width var(--transition-normal) ease;
  position: relative;
  overflow: hidden;
}

.modern-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .modern-card {
    border-radius: var(--radius-md);
    margin: var(--spacing-sm);
  }
  
  .gradient-button {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .modern-card {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .modern-input {
    background: rgba(40, 40, 40, 0.9);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .modern-tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: #8fa4ff;
  }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 现代化菜单样式 */
.modern-menu .ant-menu-item {
  margin: 4px 0 !important;
  border-radius: var(--radius-md) !important;
  transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  background: transparent !important;
}

.modern-menu .ant-menu-item:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1)) !important;
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.modern-menu .ant-menu-item-selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.modern-menu .ant-menu-item-selected .ant-menu-item-icon,
.modern-menu .ant-menu-item-selected a {
  color: white !important;
}

.modern-menu .ant-menu-item-selected .anticon {
  color: white !important;
}

.modern-menu .ant-menu-item-selected span {
  color: white !important;
}

.modern-menu .ant-menu-item a {
  color: #666 !important;
  font-weight: 500;
  transition: color var(--transition-fast) ease;
}

.modern-menu .ant-menu-item:hover a {
  color: #667eea !important;
}

.modern-menu .ant-menu-item-icon {
  font-size: 16px !important;
  transition: all var(--transition-fast) ease;
}

.modern-menu .ant-menu-item:hover .ant-menu-item-icon {
  transform: scale(1.1);
  color: #667eea !important;
}

/* 页面容器样式 */
.modern-page-container {
  padding: 24px;
  background: transparent;
  min-height: 100vh;
}

.modern-page-header {
  margin-bottom: 32px;
  padding: 0 8px;
}

.modern-page-title {
  margin: 0 !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700 !important;
  font-size: 32px !important;
  letter-spacing: -0.5px;
}

/* 统计卡片样式 */
.modern-stat-card {
  position: relative;
  overflow: hidden;
  border: none !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 24px !important;
}

.modern-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-icon-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 20px !important;
  color: white !important;
}

.stat-trend {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend-text {
  color: #7f8c8d !important;
  font-size: 13px;
  font-weight: 500;
}

/* 卡片标题样式 */
.modern-card-title {
  margin: 0 !important;
  color: #2c3e50 !important;
  font-weight: 600 !important;
  font-size: 18px !important;
}

/* 现代化表格样式 */
.modern-table {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* 可调整列宽的表格样式 */
.react-resizable-handle {
  position: absolute;
  right: -5px;
  top: 0;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  z-index: 1;
  background: transparent;
  border: none;
}

.react-resizable-handle:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 3px;
  right: -1px;
  border-radius: 2px;
  transition: all var(--transition-fast) ease;
}

.react-resizable-handle:active {
  background: #667eea;
  width: 3px;
  right: -1px;
}

/* 表格头部可调整样式 */
.modern-table .ant-table-thead > tr > th {
  position: relative;
  user-select: none;
}

.modern-table .ant-table-thead > tr > th:hover .react-resizable-handle {
  opacity: 1;
}

.modern-table .react-resizable-handle {
    opacity: 0;
    transition: opacity var(--transition-fast) ease;
  }

.modern-table .ant-table {
  background: transparent !important;
  border-radius: var(--radius-lg);
  table-layout: fixed !important;
}

.modern-table .ant-table-thead > tr > th {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08)) !important;
  border-bottom: 2px solid rgba(102, 126, 234, 0.2) !important;
  color: #2c3e50 !important;
  font-weight: 600;
  padding: 16px 12px;
  position: relative;
  transition: all var(--transition-normal) ease;
  text-align: left !important;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modern-table .ant-table-thead > tr > th:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12)) !important;
}

.modern-table .ant-table-tbody > tr {
  transition: all var(--transition-fast) ease;
  position: relative;
}

.modern-table .ant-table-tbody > tr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), transparent);
  transition: width var(--transition-normal) ease;
  z-index: 1;
}

.modern-table .ant-table-tbody > tr > td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding: 16px 12px;
  transition: all var(--transition-fast) ease;
  position: relative;
  z-index: 2;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.modern-table .ant-table-tbody > tr:hover {
  background: rgba(102, 126, 234, 0.04) !important;
  transform: translateX(2px);
  box-shadow: 4px 0 12px rgba(102, 126, 234, 0.1);
}

.modern-table .ant-table-tbody > tr:hover::before {
  width: 4px;
}

/* 表格行选中效果 */
.modern-table .ant-table-tbody > tr.ant-table-row-selected {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08)) !important;
  border-left: 4px solid #667eea;
}

/* 表格分页样式 */
.modern-table .ant-pagination {
  margin-top: var(--spacing-lg);
}

.modern-table .ant-pagination .ant-pagination-item {
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast) ease;
}

.modern-table .ant-pagination .ant-pagination-item:hover {
  border-color: #667eea;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.modern-table .ant-pagination .ant-pagination-item-active {
  background: var(--primary-gradient);
  border-color: #667eea;
  box-shadow: var(--shadow-md);
}

.modern-table .ant-pagination .ant-pagination-item-active a {
  color: white;
}

/* 现代化按钮样式 */
.modern-button {
  border: 1px solid rgba(102, 126, 234, 0.2) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: #667eea !important;
  border-radius: var(--radius-md) !important;
  font-weight: 500;
  transition: all var(--transition-normal) ease !important;
  backdrop-filter: blur(10px);
}

.modern-button:hover {
  background: rgba(102, 126, 234, 0.1) !important;
  border-color: #667eea !important;
  color: #667eea !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.modern-button:focus {
  background: rgba(102, 126, 234, 0.1) !important;
  border-color: #667eea !important;
  color: #667eea !important;
  box-shadow: var(--shadow-md), 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  .modern-card {
    border: 2px solid #000;
  }
  
  .gradient-button {
    background: #000;
    color: #fff;
  }
}

/* 布局对齐优化 */
.modern-page-container {
  padding: 16px;
  min-height: 100vh;
}

.modern-card {
  margin-bottom: 16px;
}

.modern-card .ant-card-head {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 24px;
}

.modern-card .ant-card-body {
  padding: 24px;
}

/* 统计卡片对齐 */
.modern-stat-card .ant-statistic {
  padding: 20px;
}

.modern-stat-card .ant-statistic-title {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin-bottom: 8px;
}

.modern-stat-card .ant-statistic-content {
  color: #fff !important;
  font-weight: 600;
}

/* 筛选器行对齐 */
.filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-row .ant-col {
  display: flex;
  align-items: center;
}

/* 按钮组对齐 */
.button-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* 表格工具栏对齐 */
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.table-toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.table-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 响应式对齐 */
@media (max-width: 768px) {
  .modern-page-container {
    padding: 8px;
  }
  
  .modern-card .ant-card-body {
    padding: 16px;
  }
  
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .table-toolbar-left,
  .table-toolbar-right {
    justify-content: center;
  }
}